package com.shuoyue.ycgk.ui.pay;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.shuoyue.ycgk.R;
import com.shuoyue.ycgk.base.BaseMvpActivity;
import com.shuoyue.ycgk.ui.mine.order.OrderInfoActivity;
import com.shuoyue.ycgk.ui.mine.order.OrdersActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PaySucActivity extends BaseMvpActivity {
    @BindView(R.id.page_title)
    TextView pageTitle;

    public static void start(Context context, String orderId) {
        context.startActivity(new Intent(context, PaySucActivity.class)
                .putExtra("on", orderId));
    }


    /**
     * 初始化layouy
     */
    @Override
    protected int getLayoutId() {
        return R.layout.activity_pay_suc;
    }

    /**
     * 初始化布局
     */
    @Override
    protected void initView() {
        pageTitle.setText("支付成功");
    }


    @OnClick({R.id.back, R.id.check_order, R.id.tv_ok})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.check_order:
                startActivity(new Intent(mContext, OrdersActivity.class));
                break;
            case R.id.back:
            case R.id.tv_ok:
                finish();
                break;
        }
    }
}
